package model

import (
	"gorm.io/gorm"
)

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(120)"`
	Password string `gorm:"type:varchar(255)"`
}
type Role struct {
	gorm.Model
	RoleName string `gorm:"type:varchar(120)"`
}
type Node struct {
	gorm.Model
	NodeName string `gorm:"type:varchar(120)"`
}
type UserRole struct {
	gorm.Model
	Uid int `gorm:"type:int(11)"`
	Rid int `gorm:"type:int(11)"`
}
type RoleNode struct {
	gorm.Model
	Rid int `gorm:"type:int(11)"`
	Nid int `gorm:"type:int(11)"`
}
type Pero struct {
	gorm.Model
	PeroName string `gorm:"type:varchar(120)"`
	PeroCode string `gorm:"type:varchar(120)"`
}
type PerOrder struct {
	gorm.Model
	PeroId     int    `gorm:"type:int(11)"`
	OrderCode  string `gorm:"type:varchar(120)"`
	GoodNum    int    `gorm:"type:int(11)"`
	OrderPrice int    `gorm:"type:int(11)"`
}
type PerOrderss struct {
	OrderId    int
	OrderCode  string
	GoodNum    int
	OrderPrice int
	PeroName   string
	PeroCode   string
}
